package com.jk.entity;

import com.jk.util.DateUtil;

import java.util.Date;

public enum MKey {

	NONCE("_SSO_NONCE",300),
	MOBILE("_SSO_MOBILE",300),
	APP_ID("_SSO_APP_ID",300),
	OPEN_ID("_SSO_OID",300),
    CHECK("_SSO_CHECK",300),
    CAPTCHA("_SSO_CAPTCHA",60),
    CAPTCHA_TIME("_SSO_CAPTCHA_TIME",(int) ((DateUtil.getTimeOfNextZero().getTime() - new Date().getTime()) / 1000)), ;

	private String name;
	private int time;

	MKey(String name, int index) {
		this.time = index;
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getTime() {
		return time;
	}

	public void setTime(int index) {
		this.time = index;
	}
}

